package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * 上海资信配置
 * Created by 吴柏平 on 2017/7/31.
 */
@Component
//@ConfigurationProperties(prefix = "zixin")
//@PropertySource("classpath:properties/zixin.properties")
@DisconfFile(targetDirPath = "disconf", filename = "zixin.properties")
public class ShanghaiZixinProperties {
    // URL前缀
    private String urlPrefix;

    // vpn用户名
    private String username;

    // vpn密码
    private String password;

    // 机构代码
    private String orgcode;

    // 上传报文密码
    private String ssecret;

    // zip密码
    private String zippassword;

    private String batchCreditWebServiceURI;

    private String msgSubmitWebServiceURI;

    private String queryCreditWebServiceURI;

    //登陆第一步url
    private String step1URI;

    //登陆第二步url
    private String step2URI;

    @DisconfFileItem(name = "zixin.urlPrefix", associateField = "urlPrefix")
    public String getUrlPrefix() {
        return urlPrefix;
    }

    public void setUrlPrefix(String urlPrefix) {
        this.urlPrefix = urlPrefix;
    }

    @DisconfFileItem(name = "zixin.username", associateField = "username")
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @DisconfFileItem(name = "zixin.password", associateField = "password")
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @DisconfFileItem(name = "zixin.orgcode", associateField = "orgcode")
    public String getOrgcode() {
        return orgcode;
    }

    public void setOrgcode(String orgcode) {
        this.orgcode = orgcode;
    }

    @DisconfFileItem(name = "zixin.ssecret", associateField = "ssecret")
    public String getSsecret() {
        return ssecret;
    }

    public void setSsecret(String ssecret) {
        this.ssecret = ssecret;
    }

    @DisconfFileItem(name = "zixin.zippassword", associateField = "zippassword")
    public String getZippassword() {
        return zippassword;
    }

    public void setZippassword(String zippassword) {
        this.zippassword = zippassword;
    }

    @DisconfFileItem(name = "zixin.batchCreditWebServiceURI", associateField = "batchCreditWebServiceURI")
    public String getBatchCreditWebServiceURI() {
        return batchCreditWebServiceURI;
    }

    public void setBatchCreditWebServiceURI(String batchCreditWebServiceURI) {
        this.batchCreditWebServiceURI = batchCreditWebServiceURI;
    }

    @DisconfFileItem(name = "zixin.msgSubmitWebServiceURI", associateField = "msgSubmitWebServiceURI")
    public String getMsgSubmitWebServiceURI() {
        return msgSubmitWebServiceURI;
    }

    public void setMsgSubmitWebServiceURI(String msgSubmitWebServiceURI) {
        this.msgSubmitWebServiceURI = msgSubmitWebServiceURI;
    }

    @DisconfFileItem(name = "zixin.queryCreditWebServiceURI", associateField = "queryCreditWebServiceURI")
    public String getQueryCreditWebServiceURI() {
        return queryCreditWebServiceURI;
    }

    public void setQueryCreditWebServiceURI(String queryCreditWebServiceURI) {
        this.queryCreditWebServiceURI = queryCreditWebServiceURI;
    }

    @DisconfFileItem(name = "zixin.step1URI", associateField = "step1URI")
    public String getStep1URI() {
        return step1URI;
    }

    public void setStep1URI(String step1URI) {
        this.step1URI = step1URI;
    }

    @DisconfFileItem(name = "zixin.step2URI", associateField = "step2URI")
    public String getStep2URI() {
        return step2URI;
    }

    public void setStep2URI(String step2URI) {
        this.step2URI = step2URI;
    }
}
